import request from '@/utils/request'

// 固定写法  ！！！  当get请求的时候用 params
export function sueCouponPage(params) {
  return request({
    url: '/canteenCard/sale/page',
    method: 'get',
    params
  })
}

export function delById(params) {
  return request({
    url: '/canteenCard/sale/del',
    method: 'post',
    params
  })
}

export function findMemberAll(params) {
  return request({
    url: '/canteenCard/sale/findAllMember',
    method: 'get',
    params
  })
}

export function byId(params) {
  return request({
    url: '/canteenCard/sale/findMemberById',
    method: 'get',
    params
  })
}

export function findAllCard(params) {
  return request({
    url: '/cardlist/list/findAll',
    method: 'get',
    params
  })
}
export function findAllShop(params) {
  return request({
    url: '/shop/shopList/shops',
    method: 'get',
    params
  })
}
export function addSale(data) {
  return request({
    url: '/canteenCard/sale/insert',
    method: 'post',
    data
  })
}

